Skip to main content

Task Result

Last Update: 2025/3/26

The Task Result API allows you to retrieve information about a specific task using either the task ID or external task ID. This document provides details about the API endpoint, request parameters, and response structure.

Endpoint

GET https://platform.llmprovider.ai/v1/task/{task_id}

Request Headers

HeaderValueDescription
AuthorizationBearer YOUR_API_KEYAuthentication token
Content-Typeapplication/jsonData exchange format

Path Parameters

ParameterTypeRequiredDefaultDescription
task_idstringNoNoneTask ID for video generation
external_task_idstringNoNoneCustom task ID specified during task creation

Note: You must provide either task_id or external_task_id, but not both.

Response Body

The response body will be a JSON object containing the task information and status.

FieldTypeDescription
task_idstringSystem-generated task ID
task_statusstringTask status (submitted/processing/succeed/failed)
task_status_msgstringTask status message, shows failure reason if applicable
created_atintegerTask creation timestamp (Unix timestamp in ms)
updated_atintegerTask update timestamp (Unix timestamp in ms)

Example Response

 {
"task_id": "string",
"task_status": "string",
"task_status_msg": "string",
"task_info": {
"external_task_id": "string"
},
"task_result": {
"videos": [
{
"id": "string",
"url": "string",
"duration": "string"
}
]
},
"created_at": 1722769557708,
"updated_at": 1722769557708
}

Example Request

curl -X GET https://platform.llmprovider.ai/v1/task/{task_id} \
-H "Authorization: Bearer $YOUR_API_KEY" \
-H "Content-Type: application/json"

Note: Generated videos are retained for 30 days. Please ensure to save them before they expire.